package com.gsy.request;

import com.gsy.utils.JsonUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Date 2022/3/3 23:25:41
 * @Author gsy
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel
@Data
public class LoginRequest extends BaseRequest {
    @ApiModelProperty(name = "用户", value = "用户", dataType = "String", example = "用户")
    private String username;

    @ApiModelProperty(name = "密码", value = "密码", dataType = "String", example = "密码")
    private String password;
    @ApiModelProperty(name = "类型", value = "用户类型", dataType = "Integer", example = "(1管理员 2学生 3教师 )")
    private Integer type;

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
